<%--
  Created by IntelliJ IDEA.
  User: 王殿鑫
  Date: 2021/5/6
  Time: 18:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8"  isELIgnored="false"
         pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>购物车页</title>
</head>
<style>
    *{
        margin: 0 auto;
    }
</style>
<body>
<div class="" style="width: 1200px;">

    <div style="position: relative; width: 1200px; height: 100px;">
        <a style="font-size: 46px;margin-left: 500px;font-family: 楷体">购物车页</a>
        <a style="font-size: 38px;margin-left: 300px;color: coral;font-family: 楷体">当前用户姓名：${clientUser.username}
<%--            <img src="" style="width: 50px;height: 50px;margin-top:10px;" >--%>
        </a>
    </div>

    <table border="1px" cellspacing="0" align="center" width="1200px" style="margin-top: 10px;text-align: center;border-color:#336699 ">
        <tr>
            <th>商品图片</th>
            <th>名称</th>
            <th>价格</th>
            <th>数量</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${carts}" var="shopcar">
        <tr>
            <td><img src="img${shopcar.detail}" style="width: 100px; height: 100px;"/> </td>
            <td>${shopcar.goodsname}</td>
            <td style="color: red;font-size: 20px">${shopcar.price}元</td>
            <td>${shopcar.cnt}</td>
            <td>
                <a href="#">购买</a>&nbsp;&nbsp;&nbsp;
                <a href="#">删除</a>
            </td>
        </tr>
        </c:forEach>
    </table>



</div>
</body>
</html>
